package cn.com.dal.dataobject.cs;

import cn.com.support.dal.BaseDO;

/**
 * 与核算汇总
 * 
 * @since 2012-4-7 下午4:50:36
 * @version 1.0
 * @author Microbun
 * 
 */
public class SummaryDO extends BaseDO {
	private static final long serialVersionUID = 2066940397648850720L;
	private Long id = 0L;
	private String name;
	private String code;
	private Short type;
	private Long contractValue = 0L;
	private Long wageCoefficient = 0L;
	private Long completedRate = 0L;
	private Long budgetcalcCplValue = 0L;
	private Long geosurveyCost = 0L;
	private Long surveyCost = 0L;
	private Long otherCost = 0L;
	private Long designCost = 0L;
	private Long conferenceCost = 0L;
	//公司
	private Long companycostBusinessdeptCost = 0L;
	private Long companycostChiefengCost = 0L;
	private Long companycostLeaderCost = 0L;
	private Long companycostEntertainCost = 0L;
	private Long companycostConferenceCost = 0L;
	private Long companycostLaborCost = 0L;
	private Long companycostBiddingCost = 0L;
	private Long companycostPublishCost = 0L;
	private Long companycostOutputvalueCost = 0L;
	private Long companycostWageCost = 0L;
	private Long companycostEquCost=0L;
	private Long companycostLeaderentCost=0L;
	//分院
	private Long branchEquCost=0L;
	private Long branchWageCost = 0L;
	private Long branchBorrowCost = 0L;
	private Long branchOutsideCost = 0L;
	private Long branchSelfmanageCost = 0L;
	private Long branchTravelgrantCost = 0L;
	private Long branchEntertainCost = 0L;
	private Long branchOtherCost = 0L;

	// private Long id;
	// private String name;
	// private Short type;
	//
	// private Long totalValue = 0L;
	// private Long completedValue = 0L;
	// private Long budgetcalcCplValue = 0L;
	//
	// private Long outsideGeosurveyCost = 0L;
	// private Long outsideSurveyCost = 0L;
	// private Long outsideOtherCost = 0L;
	// private Long outsideDesignCost = 0L;
	//外委小计
	private Long outsideCount = 0L;
	// private Long companycostWageCost = 0L;
	// private Long companycostBusinessdeptCost = 0L;
	// private Long companycostChiefengCost = 0L;
	// private Long companycostLeaderCost = 0L;
	// private Long companycostEntertainCost = 0L;
	// private Long companycostConferenceCost = 0L;
	// private Long companycostLaborCost = 0L;
	// private Long companycostBiddingCost = 0L;
	// private Long companycostPublishCost = 0L;
	// private Long companycostOutputvalueCost = 0L;
	//差旅补助小计
	private Long companycostTravelCount = 0L;
	//管理费用小计
	private Long companycostManageCount = 0L;
	//公司成本合计
	private Long companycostCount = 0L;
	// private Long branchWageCost = 0L;
	// private Long branchBorrowCost = 0L;
	// private Long branchOutsideCost = 0L;
	// private Long branchSelfmanageCost = 0L;
	// private Long branchTravelgrantCost = 0L;
	// private Long branchEntertainCost = 0L;
	// private Long branchOtherCost = 0L;
	//分院成本合计
	private Long branchCount = 0L;
	//分院工资奖金/外委费用小计
	private Long branchLiteSummary = 0L;
	//分院自主经营小计
	private Long branchManageSummary = 0L;
	//合计
	private Long totalCount = 0L;
	//利润 = 预核算完成额 - 报销总计
	private Long profitCount = 0L;

	public Long getTotalCount() {
		 return geosurveyCost + surveyCost + otherCost +designCost
		 + companycostWageCost + companycostBusinessdeptCost
		 + companycostChiefengCost + companycostLeaderCost
		 + companycostEntertainCost + companycostConferenceCost
		 + companycostLaborCost + companycostBiddingCost
		 + companycostPublishCost + companycostOutputvalueCost
		 + companycostLeaderentCost + companycostEquCost
		 + (budgetcalcCplValue * wageCoefficient)/100 + branchOutsideCost
		 + branchSelfmanageCost + branchTravelgrantCost
		 + branchEntertainCost + branchOtherCost + branchEquCost;
	}

	 public Long getProfitCount() {
		 return budgetcalcCplValue
		 - ( geosurveyCost + surveyCost + otherCost +designCost
			 + companycostWageCost + companycostBusinessdeptCost
			 + companycostChiefengCost + companycostLeaderCost
			 + companycostEntertainCost + companycostConferenceCost
			 + companycostLaborCost + companycostBiddingCost
			 + companycostPublishCost + companycostOutputvalueCost
			 + companycostLeaderentCost + companycostEquCost
			 + (budgetcalcCplValue * wageCoefficient)/100 + branchOutsideCost
			 + branchSelfmanageCost + branchTravelgrantCost
			 + branchEntertainCost + branchOtherCost + branchEquCost);
	 }
	 
	 public Long getCompanycostManageCount() {
		 return companycostEntertainCost + companycostConferenceCost
		 + companycostLaborCost + companycostBiddingCost
		 + companycostBiddingCost + companycostOutputvalueCost;
	 }
	 
	 public Long getCompanycostCount() {
		 return companycostWageCost + companycostBusinessdeptCost
		 + companycostChiefengCost + companycostLeaderCost
		 + companycostEntertainCost + companycostConferenceCost
		 + companycostLaborCost + companycostBiddingCost
		 + companycostPublishCost
		 + companycostOutputvalueCost + companycostLeaderentCost + companycostEquCost;
	 }
	 
	public Long getBranchCount() {
		return (budgetcalcCplValue * wageCoefficient)/100 + branchOutsideCost
				+ branchSelfmanageCost + branchTravelgrantCost
				+ branchEntertainCost + branchOtherCost + branchEquCost;
	}
	
	public Long getBranchLiteSummary(){
		return (budgetcalcCplValue * wageCoefficient)/100;
	}
	
	public Long getBranchManageSummary(){
		return branchOutsideCost + branchSelfmanageCost + branchTravelgrantCost
				+ branchEntertainCost + branchOtherCost;
	}
	
	/**
	 * 分院成本汇总
	 * 
	 * @return
	 */
	 
	public Long getBranchSummary() {
		return (budgetcalcCplValue * wageCoefficient)/100 + branchOutsideCost
				+ branchSelfmanageCost + branchTravelgrantCost
				+ branchEntertainCost + branchOtherCost + branchEquCost;
	}

	public Long getCompanycostTravelCount() {
		 return companycostLeaderCost + companycostBusinessdeptCost
		 + companycostChiefengCost;
	}

	public void setCompanycostTravelCount(Long companycostTravelCount) {
		this.companycostTravelCount = companycostTravelCount;
	}

	public Long getOutsideCount() {
		return geosurveyCost + surveyCost + otherCost +designCost;
	}

	public void setOutsideCount(Long outsideCount) {
		this.outsideCount = outsideCount;
	}
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Short getType() {
		return type;
	}

	public void setType(Short type) {
		this.type = type;
	}

	public Long getContractValue() {
		return contractValue;
	}

	public void setContractValue(Long contractValue) {
		this.contractValue = contractValue;
	}

	public Long getWageCoefficient() {
		return wageCoefficient;
	}

	public void setWageCoefficient(Long wageCoefficient) {
		this.wageCoefficient = wageCoefficient;
	}

	public Long getCompletedRate() {
		return completedRate;
	}

	public void setCompletedRate(Long completedRate) {
		this.completedRate = completedRate;
	}

	public Long getBudgetcalcCplValue() {
		return budgetcalcCplValue;
	}

	public void setBudgetcalcCplValue(Long budgetcalcCplValue) {
		this.budgetcalcCplValue = budgetcalcCplValue;
	}

	public Long getGeosurveyCost() {
		return geosurveyCost;
	}

	public void setGeosurveyCost(Long geosurveyCost) {
		this.geosurveyCost = geosurveyCost;
	}

	public Long getSurveyCost() {
		return surveyCost;
	}

	public void setSurveyCost(Long surveyCost) {
		this.surveyCost = surveyCost;
	}

	public Long getOtherCost() {
		return otherCost;
	}

	public void setOtherCost(Long otherCost) {
		this.otherCost = otherCost;
	}

	public Long getDesignCost() {
		return designCost;
	}

	public void setDesignCost(Long designCost) {
		this.designCost = designCost;
	}

	public Long getConferenceCost() {
		return conferenceCost;
	}

	public void setConferenceCost(Long conferenceCost) {
		this.conferenceCost = conferenceCost;
	}

	public Long getCompanycostBusinessdeptCost() {
		return companycostBusinessdeptCost;
	}

	public void setCompanycostBusinessdeptCost(Long companycostBusinessdeptCost) {
		this.companycostBusinessdeptCost = companycostBusinessdeptCost;
	}

	public Long getCompanycostChiefengCost() {
		return companycostChiefengCost;
	}

	public void setCompanycostChiefengCost(Long companycostChiefengCost) {
		this.companycostChiefengCost = companycostChiefengCost;
	}

	public Long getCompanycostLeaderCost() {
		return companycostLeaderCost;
	}

	public void setCompanycostLeaderCost(Long companycostLeaderCost) {
		this.companycostLeaderCost = companycostLeaderCost;
	}

	public Long getCompanycostEntertainCost() {
		return companycostEntertainCost;
	}

	public void setCompanycostEntertainCost(Long companycostEntertainCost) {
		this.companycostEntertainCost = companycostEntertainCost;
	}

	public Long getCompanycostConferenceCost() {
		return companycostConferenceCost;
	}

	public void setCompanycostConferenceCost(Long companycostConferenceCost) {
		this.companycostConferenceCost = companycostConferenceCost;
	}

	public Long getCompanycostLaborCost() {
		return companycostLaborCost;
	}

	public void setCompanycostLaborCost(Long companycostLaborCost) {
		this.companycostLaborCost = companycostLaborCost;
	}

	public Long getCompanycostBiddingCost() {
		return companycostBiddingCost;
	}

	public void setCompanycostBiddingCost(Long companycostBiddingCost) {
		this.companycostBiddingCost = companycostBiddingCost;
	}

	public Long getCompanycostPublishCost() {
		return companycostPublishCost;
	}

	public void setCompanycostPublishCost(Long companycostPublishCost) {
		this.companycostPublishCost = companycostPublishCost;
	}

	public Long getCompanycostOutputvalueCost() {
		return companycostOutputvalueCost;
	}

	public void setCompanycostOutputvalueCost(Long companycostOutputvalueCost) {
		this.companycostOutputvalueCost = companycostOutputvalueCost;
	}

	public Long getCompanycostWageCost() {
		return companycostWageCost;
	}

	public void setCompanycostWageCost(Long companycostWageCost) {
		this.companycostWageCost = companycostWageCost;
	}

	public Long getCompanycostEquCost() {
		return companycostEquCost;
	}

	public void setCompanycostEquCost(Long companycostEquCost) {
		this.companycostEquCost = companycostEquCost;
	}

	public Long getCompanycostLeaderentCost() {
		return companycostLeaderentCost;
	}

	public void setCompanycostLeaderentCost(Long companycostLeaderentCost) {
		this.companycostLeaderentCost = companycostLeaderentCost;
	}

	public Long getBranchEquCost() {
		return branchEquCost;
	}

	public void setBranchEquCost(Long branchEquCost) {
		this.branchEquCost = branchEquCost;
	}

	public Long getBranchWageCost() {
		return ((budgetcalcCplValue * wageCoefficient)/100) - branchBorrowCost;
	}

	public void setBranchWageCost(Long branchWageCost) {
		this.branchWageCost = branchWageCost;
	}

	public Long getBranchBorrowCost() {
		return branchBorrowCost;
	}

	public void setBranchBorrowCost(Long branchBorrowCost) {
		this.branchBorrowCost = branchBorrowCost;
	}

	public Long getBranchOutsideCost() {
		return branchOutsideCost;
	}

	public void setBranchOutsideCost(Long branchOutsideCost) {
		this.branchOutsideCost = branchOutsideCost;
	}

	public Long getBranchSelfmanageCost() {
		return branchSelfmanageCost;
	}

	public void setBranchSelfmanageCost(Long branchSelfmanageCost) {
		this.branchSelfmanageCost = branchSelfmanageCost;
	}

	public Long getBranchTravelgrantCost() {
		return branchTravelgrantCost;
	}

	public void setBranchTravelgrantCost(Long branchTravelgrantCost) {
		this.branchTravelgrantCost = branchTravelgrantCost;
	}

	public Long getBranchEntertainCost() {
		return branchEntertainCost;
	}

	public void setBranchEntertainCost(Long branchEntertainCost) {
		this.branchEntertainCost = branchEntertainCost;
	}

	public Long getBranchOtherCost() {
		return branchOtherCost;
	}

	public void setBranchOtherCost(Long branchOtherCost) {
		this.branchOtherCost = branchOtherCost;
	}

}
